import os

class Config:
    SECRET_KEY = os.environ.get('SECRET_KEY') or 'your-super-secret-key-change-this-in-production'
    SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or 'sqlite:///vocabulary.db'
    SQLALCHEMY_TRACK_MODIFICATIONS = False
    
    # 词汇数据路径
    VOCABULARY_DATA_PATH = 'data'
    ENGLISH_WORDLISTS_PATH = 'english-wordlists'
    CORPUS_PATH = '语料'
    
    # 测试配置
    MIN_TEST_WORDS = 10
    MAX_TEST_WORDS = 100
    DEFAULT_TEST_WORDS = 50
    
    # 批处理配置
    BATCH_SIZE = 50
    
    # 算法配置
    CONFIDENCE_THRESHOLD = 0.5
    MIN_CORPUS_LENGTH = 10 